package cn.leaf.state;

public class UnconfirmedState implements OrderState {
    @Override
    public void confirm(Order order) {
        order.setState(new ConfirmedState());
        System.out.println("订单已确认！");
    }

    @Override
    public void cancel(Order order) {
        System.out.println("订单已取消，不能执行此操作！");
    }

    @Override
    public void ship(Order order) {
        System.out.println("订单未确认，不能发货！");
    }
}